public class J01 {
    public static void main(String[] args) {
        for(int i = 1;i <= 100;i++){
            int tmp = 0;
            for(int j = 2;j <= Math.sqrt(i);j++){
                if(i % j == 0){
                    tmp++;
                    break;
                }
            }
            if(tmp == 0){
                System.out.print(i + " ");
            }
        }
    }
}
